home *** CD-ROM | disk | FTP | other *** search
- package asp.nfx.MSDBUpdate;
-
- import asp.util.EResourceUtil;
- import asp.util.ResourceUtil;
- import com.netobjects.nfc.api.CStringArray;
- import com.netobjects.nfc.api.ComponentApp;
- import com.netobjects.nfc.api.DAssetManager;
- import com.netobjects.nfc.api.DDrawFormButton;
- import com.netobjects.nfc.api.DLayout;
- import com.netobjects.nfc.api.DMessageBox;
- import com.netobjects.nfc.api.DRect;
- import com.netobjects.nfc.api.IDInspector;
-
- public class MSDBUpdate extends ComponentApp {
- String name;
- String buttonAction;
- String buttonType;
- int buttonImage;
- String buttonText;
- String queryComponent;
- String tableName;
- int primaryKeyCount;
- String[] primaryKeyFieldNames;
- String[] primaryKeyFieldDataTypes;
- int successPage;
- int errorPage;
- private String INCLUDEFILE_SUBDIR = "asp";
- String preName = "amaspComponent_";
- DDrawFormButton component;
- String codebase;
- DAssetManager assMan;
- protected static transient ResourceUtil resUtil = null;
- static final int MAXKEYFIELDCOUNT = 10;
- static final int COMP_WIDTH = 8;
- static final int COMP_HEIGHT = 22;
- static final String SCRIPTDELIMOPEN = "<SCRIPT RUNAT=SERVER LANGUAGE=JSCRIPT>\n";
- static final String SCRIPTDELIMCLOSE = "</SCRIPT>\n";
- static final int MAXASSET = 50;
- int[] assetControl;
- int assetCount;
- boolean published = false;
- // $FF: synthetic field
- static Class class$asp$nfx$MSDBUpdate$MSDBUpdate;
-
- public String onInstall(DAssetManager cam, String codebase) {
- this.assMan = cam;
- return "MSDBUpdate";
- }
-
- public void onDrop(DLayout layout, DRect r, int fDrop) {
- if (fDrop == 1) {
- this.allocateFieldsArray();
- this.name = resUtil.getString("value.name");
- this.tableName = "";
- this.buttonAction = "0";
- this.buttonType = "1";
- this.buttonImage = 0;
- this.buttonText = this.getDefaultText(this.getButtonAction(Integer.parseInt(this.buttonAction, 10)));
- this.queryComponent = resUtil.getString("value.query");
- this.primaryKeyCount = 1;
- this.primaryKeyFieldNames[0] = resUtil.getString("value.kfldname");
- this.primaryKeyFieldDataTypes[0] = "0";
- this.assetControl = new int[50];
- this.component = new DDrawFormButton();
- this.codebase = this.component.getCodeBase();
- this.component.setText(this.buttonText);
- this.component.SetPositionRect(r.getLeft(), r.getTop(), r.getRight(), r.getBottom());
- this.component.setName("MSDBUpdate1");
- layout.AddObject(this.component);
- }
- }
-
- public void onInspect(CStringArray Names, CStringArray Types) {
- Names.Set(resUtil.getString("property.name"));
- Types.Set("String");
- Names.Set(resUtil.getString("property.query"));
- Types.Set("String");
- Names.Set(resUtil.getString("property.btnaction"));
- Types.Set("Set(" + resUtil.getString("option.btnaction") + ")");
- Names.Set(resUtil.getString("property.btntype"));
- Types.Set("Set(" + resUtil.getString("option.btntype") + ")");
- Names.Set(resUtil.getString("property.btnimage"));
- Types.Set("Image");
- Names.Set(resUtil.getString("property.btntext"));
- Types.Set("String");
- Names.Set(resUtil.getString("property.table"));
- Types.Set("String");
- Names.Set(resUtil.getString("property.kfldcount"));
- Types.Set("Collection");
-
- for(int cnt = 0; cnt < this.primaryKeyCount; ++cnt) {
- Names.Set(resUtil.getString("property.kfldname") + " " + Integer.toString(cnt + 1));
- Types.Set("String");
- Names.Set(resUtil.getString("property.kfldtype") + " " + Integer.toString(cnt + 1));
- Types.Set("Set(" + resUtil.getString("option.kfldtype") + ")");
- }
-
- Names.Set(resUtil.getString("property.successpage"));
- Types.Set("Link");
- Names.Set(resUtil.getString("property.errorpage"));
- Types.Set("Link");
- }
-
- public String PropertyListener(String Event, String Value, int Get, int propIndex, IDInspector insp) {
- if (Get == 1) {
- if (Event.compareTo(resUtil.getString("property.name")) == 0) {
- this.name = this.component.getName();
- return this.name;
- }
-
- if (Event.compareTo(resUtil.getString("property.btnaction")) == 0) {
- return this.buttonAction;
- }
-
- if (Event.compareTo(resUtil.getString("property.btntype")) == 0) {
- return this.buttonType;
- }
-
- if (Event.compareTo(resUtil.getString("property.btnimage")) == 0) {
- return Integer.toString(this.buttonImage);
- }
-
- if (Event.compareTo(resUtil.getString("property.btntext")) == 0) {
- this.buttonText = this.component.getText();
- return this.buttonText;
- }
-
- if (Event.compareTo(resUtil.getString("property.query")) == 0) {
- return this.queryComponent;
- }
-
- if (Event.compareTo(resUtil.getString("property.table")) == 0) {
- return this.tableName;
- }
-
- if (Event.compareTo(resUtil.getString("property.kfldcount")) == 0) {
- return Integer.toString(this.primaryKeyCount);
- }
-
- if (Event.compareTo(resUtil.getString("property.successpage")) == 0) {
- return Integer.toString(this.successPage);
- }
-
- if (Event.compareTo(resUtil.getString("property.errorpage")) == 0) {
- return Integer.toString(this.errorPage);
- }
-
- for(int cnt = 0; cnt < this.primaryKeyCount; ++cnt) {
- if (Event.compareTo(resUtil.getString("property.kfldname") + " " + Integer.toString(cnt + 1)) == 0) {
- return new String(this.primaryKeyFieldNames[cnt]);
- }
-
- if (Event.compareTo(resUtil.getString("property.kfldtype") + " " + Integer.toString(cnt + 1)) == 0) {
- return new String(this.primaryKeyFieldDataTypes[cnt]);
- }
- }
- } else if (Event.compareTo(resUtil.getString("property.name")) == 0) {
- if (this.isValidName(Value)) {
- this.name = Value;
- this.component.setName(this.name);
- }
- } else if (Event.compareTo(resUtil.getString("property.btnaction")) == 0) {
- this.buttonAction = Value;
- if (this.queryComponent.compareTo("") == 0 && Value.compareTo("0") != 0) {
- this.queryComponent = resUtil.getString("value.query");
- insp.OnPropertyChanged(-1);
- }
- } else if (Event.compareTo(resUtil.getString("property.btntype")) == 0) {
- if (this.getButtonType(Integer.parseInt(Value, 10)).compareTo("image") == 0) {
- this.buttonText = resUtil.getString("value.btntextimg");
- this.component.setText(this.buttonText);
- } else {
- this.buttonText = this.getDefaultText(this.getButtonAction(Integer.parseInt(this.buttonAction, 10)));
- this.component.setText(this.buttonText);
- this.buttonImage = -1;
- }
-
- this.buttonType = Value;
- insp.OnPropertyChanged(-1);
- } else if (Event.compareTo(resUtil.getString("property.btnimage")) == 0) {
- this.buttonImage = Integer.parseInt(Value, 10);
- if (this.buttonType.compareTo("0") != 0) {
- DMessageBox msg = new DMessageBox();
- msg.Warning(resUtil.getString("error.settoimage"));
- this.buttonType = "0";
- this.buttonText = "<IMAGE>";
- this.component.setText(this.buttonText);
- insp.OnPropertyChanged(-1);
- }
- } else if (Event.compareTo(resUtil.getString("property.btntext")) == 0) {
- this.buttonText = Value;
- if (this.buttonType.compareTo("0") == 0) {
- DMessageBox msg = new DMessageBox();
- msg.Warning(resUtil.getString("error.settotext"));
- this.buttonType = "1";
- this.buttonImage = -1;
- insp.OnPropertyChanged(-1);
- }
-
- this.component.setText(this.buttonText);
- this.component.Invalidate(true);
- } else if (Event.compareTo(resUtil.getString("property.query")) == 0) {
- if (this.buttonAction.compareTo("0") != 0) {
- if (this.isValidName(Value)) {
- this.queryComponent = Value;
- }
- } else {
- this.queryComponent = Value;
- }
- } else if (Event.compareTo(resUtil.getString("property.table")) == 0) {
- this.tableName = Value;
- } else if (Event.compareTo(resUtil.getString("property.kfldcount")) == 0) {
- int myCnt = Integer.parseInt(Value, 10);
- if (this.isValidCollection(myCnt)) {
- DMessageBox msg = new DMessageBox();
- int answer = 1;
- if (myCnt > 10) {
- answer = msg.Alert(resUtil.getString("error.maxfield") + " " + Integer.toString(10) + ".");
- if (answer == 1) {
- myCnt = 10;
- }
- }
-
- if (answer == 1) {
- this.primaryKeyCount = myCnt;
-
- for(int cnt = this.primaryKeyCount; cnt < 10; ++cnt) {
- this.primaryKeyFieldNames[cnt] = "";
- this.primaryKeyFieldDataTypes[cnt] = "-1";
- }
-
- insp.OnPropertyChanged(-1);
- }
- }
- } else if (Event.compareTo(resUtil.getString("property.successpage")) == 0) {
- this.successPage = Integer.parseInt(Value, 10);
- } else if (Event.compareTo(resUtil.getString("property.errorpage")) == 0) {
- this.errorPage = Integer.parseInt(Value, 10);
- } else {
- for(int cnt = 0; cnt < this.primaryKeyCount; ++cnt) {
- if (Event.compareTo(resUtil.getString("property.kfldname") + " " + Integer.toString(cnt + 1)) == 0) {
- this.primaryKeyFieldNames[cnt] = Value;
- }
-
- if (Event.compareTo(resUtil.getString("property.kfldtype") + " " + Integer.toString(cnt + 1)) == 0) {
- this.primaryKeyFieldDataTypes[cnt] = Value;
- }
- }
- }
-
- return "";
- }
-
- public void onCopy() {
- this.component.setName(this.name);
- this.component.setText(this.buttonText);
- String[] primaryKeyFieldNamesOld = this.primaryKeyFieldNames;
- String[] primaryKeyFieldDataTypesOld = this.primaryKeyFieldDataTypes;
- this.primaryKeyFieldNames = new String[10];
- this.primaryKeyFieldDataTypes = new String[10];
-
- for(int i = 0; i < this.primaryKeyCount; ++i) {
- this.primaryKeyFieldNames[i] = new String(primaryKeyFieldNamesOld[i]);
- this.primaryKeyFieldDataTypes[i] = new String(primaryKeyFieldDataTypesOld[i]);
- }
-
- this.assMan.CopyAsset(this.successPage);
- this.assMan.CopyAsset(this.errorPage);
- int[] assetControlOld = this.assetControl;
-
- for(int i = 0; i < this.assetCount; ++i) {
- this.assetControl[i] = assetControlOld[i];
- if (this.assetControl[i] != 0) {
- this.assMan.CopyAsset(this.assetControl[i]);
- }
- }
-
- }
-
- public void onPublish(DAssetManager asm, int context) {
- DLayout cidLayout = this.component.getLayout();
- String NestedDir = "";
- String homePath = cidLayout.GetHomePath();
- if (homePath.compareTo("..\\") == 0) {
- NestedDir = ".";
- }
-
- String IncludeFile = "<!--#INCLUDE FILE=\"" + NestedDir + "./assets/lib/MSDBUpdate.inc\"-->\n";
- this.removeAssets();
- this.published = true;
- int javaScriptAsset = this.assMan.AddAsset(this.codebase + "MSDBUpdateHandler.asp", "HTML", "assets\\lib");
- this.assetControl[this.assetCount] = javaScriptAsset;
- this.assMan.SetPublishAssetMode(this.assetControl[this.assetCount], 453);
- ++this.assetCount;
- int javaScriptFile = this.assMan.AddAsset(this.codebase + "MSDBUpdate.inc", "JavaScript", "assets\\lib");
- this.assetControl[this.assetCount] = javaScriptFile;
- ++this.assetCount;
- String HTMLHead = "";
- String HTMLBefore = "";
- String HTMLAfter = "";
- String actionPath = asm.GetAssetRelativeLocation(javaScriptAsset, context, 0);
- asm.GetAssetRelativeLocation(this.buttonImage, context, 0);
- String errorPath = asm.GetAssetRelativeLocation(this.errorPage, context, 1);
- String successPath = asm.GetAssetRelativeLocation(this.successPage, context, 1);
- if (successPath.length() > 0) {
- if (successPath.substring(0, 2).compareTo("./") == 0) {
- successPath = "." + successPath;
- }
-
- successPath = "../" + successPath;
- }
-
- if (errorPath.length() > 0) {
- if (errorPath.substring(0, 2).compareTo("./") == 0) {
- errorPath = "." + errorPath;
- }
-
- errorPath = "../" + errorPath;
- }
-
- HTMLHead = "\n";
- HTMLHead = HTMLHead + "<SCRIPT RUNAT=SERVER LANGUAGE=JSCRIPT>\n\n";
- HTMLHead = HTMLHead + "//Created by MSDBUpdate component in NetObjects Fusion\n";
- HTMLHead = HTMLHead + "//Construct field arrays\n";
- HTMLHead = HTMLHead + this.name + "primaryKeyFieldNames = new Array(" + this.primaryKeyCount + ");\n";
- HTMLHead = HTMLHead + this.name + "primaryKeyFieldDataTypes = new Array(" + this.primaryKeyCount + ");\n";
- HTMLHead = HTMLHead + "\n";
-
- for(int i = 0; i < this.primaryKeyCount; ++i) {
- HTMLHead = HTMLHead + this.name + "primaryKeyFieldNames[" + Integer.toString(i) + "] = \"" + this.primaryKeyFieldNames[i] + "\";\n";
- HTMLHead = HTMLHead + this.name + "primaryKeyFieldDataTypes[" + Integer.toString(i) + "] = \"" + this.getDataType(Integer.parseInt(this.primaryKeyFieldDataTypes[i], 10)) + "\";\n";
- }
-
- HTMLHead = HTMLHead + "\n";
- HTMLHead = HTMLHead + "\n";
- HTMLHead = HTMLHead + "//" + resUtil.getString("text.comment") + "\n";
- HTMLHead = HTMLHead + this.name + " = new MSDBUpdate(\n";
- HTMLHead = HTMLHead + " \"" + this.name + "\",\n";
- HTMLHead = HTMLHead + " \"" + this.getButtonAction(Integer.parseInt(this.buttonAction, 10)) + "\",\n";
- HTMLHead = HTMLHead + " \"" + this.queryComponent + "\",\n";
- HTMLHead = HTMLHead + " \"" + this.tableName + "\",\n";
- HTMLHead = HTMLHead + " \"" + successPath + "\",\n";
- HTMLHead = HTMLHead + " \"" + errorPath + "\",\n";
- HTMLHead = HTMLHead + " " + Integer.toString(this.primaryKeyCount) + ",\n";
- HTMLHead = HTMLHead + " " + this.name + "primaryKeyFieldNames,\n";
- HTMLHead = HTMLHead + " null,\n";
- HTMLHead = HTMLHead + " " + this.name + "primaryKeyFieldDataTypes\n";
- HTMLHead = HTMLHead + ");\n";
- HTMLHead = HTMLHead + "\n";
- HTMLHead = HTMLHead + "</SCRIPT>\n\n";
- cidLayout.setHTMLBefore(IncludeFile + HTMLHead);
- cidLayout.setFormAction(actionPath);
- String theHTML = "\n<%";
- theHTML = theHTML + "\n" + this.name + ".render()";
- theHTML = theHTML + "\n%>";
- theHTML = theHTML + "\n<!Button Type = " + this.getButtonType(Integer.parseInt(this.buttonType, 10)) + ">";
- theHTML = theHTML + "\n<INPUT NAME = \"" + this.preName + this.name + "\"";
- if (this.getButtonType(Integer.parseInt(this.buttonType, 10)).compareTo("image") == 0) {
- theHTML = theHTML + " BORDER = 0 TYPE = \"IMAGE\"";
- theHTML = theHTML + " SRC = \"" + asm.GetAssetRelativeLocation(this.buttonImage, context, 0) + "\"";
- } else {
- theHTML = theHTML + " TYPE = \"SUBMIT\"";
- theHTML = theHTML + " VALUE = \"" + this.buttonText + "\"";
- }
-
- theHTML = theHTML + ">";
- theHTML = theHTML + "\n<!--";
- this.component.setHTMLBefore(theHTML);
- this.component.setHTMLAfter("-->");
- }
-
- protected void finalize() {
- this.removeAssets();
- this.assMan.RemoveAsset(this.successPage);
- this.assMan.RemoveAsset(this.errorPage);
- }
-
- public void onUnInstall(DAssetManager cam) {
- }
-
- void allocateFieldsArray() {
- this.primaryKeyFieldNames = new String[10];
- this.primaryKeyFieldDataTypes = new String[10];
-
- for(int cnt = 0; cnt < 10; ++cnt) {
- this.primaryKeyFieldDataTypes[cnt] = "";
- this.primaryKeyFieldNames[cnt] = "";
- }
-
- }
-
- public boolean isValidName(String testString) {
- boolean result = true;
- if (testString.compareTo("") == 0) {
- DMessageBox msg = new DMessageBox();
- msg.Warning(resUtil.getString("error.validname"));
- result = false;
- }
-
- return result;
- }
-
- public boolean isValidCollection(int testNo) {
- boolean result = true;
- if (testNo < 0) {
- DMessageBox msg = new DMessageBox();
- msg.Warning(resUtil.getString("error.validnumber"));
- result = false;
- }
-
- return result;
- }
-
- public String getDefaultText(String myValue) {
- String result = "";
- if (myValue.compareTo("add") == 0) {
- result = resUtil.getString("value.btntextadd");
- } else if (myValue.compareTo("delete") == 0) {
- result = resUtil.getString("value.btntextmod");
- } else if (myValue.compareTo("modify") == 0) {
- result = resUtil.getString("value.btntextdel");
- }
-
- return result;
- }
-
- public String getDataType(int myValue) {
- int maxCount = 4;
- String result = "";
- String[] myArray = new String[maxCount];
- if (myValue >= 0 & myValue < maxCount) {
- myArray[0] = "string";
- myArray[1] = "number";
- myArray[2] = "boolean";
- myArray[3] = "date";
- result = myArray[myValue];
- }
-
- return result;
- }
-
- public String getButtonType(int myValue) {
- int maxCount = 2;
- String result = "";
- String[] myArray = new String[maxCount];
- if (myValue >= 0 & myValue < maxCount) {
- myArray[0] = "image";
- myArray[1] = "text";
- result = myArray[myValue];
- }
-
- return result;
- }
-
- public String getButtonAction(int myValue) {
- int maxCount = 3;
- String result = "";
- String[] myArray = new String[maxCount];
- if (myValue >= 0 & myValue < maxCount) {
- myArray[0] = "add";
- myArray[1] = "modify";
- myArray[2] = "delete";
- result = myArray[myValue];
- }
-
- return result;
- }
-
- private void removeAssets() {
- if (this.published) {
- for(int i = 0; i < this.assetCount; ++i) {
- this.assMan.RemoveAsset(this.assetControl[i]);
- }
- }
-
- this.assetCount = 0;
- }
-
- public static ResourceUtil initResourceUtil(Class compClass) {
- ResourceUtil _ru = null;
-
- try {
- _ru = new ResourceUtil("asp.nfx.res", compClass);
- } catch (EResourceUtil e) {
- System.err.println(((Throwable)e).getMessage());
- }
-
- return _ru;
- }
-
- public String propertyManager(String Event, String Value, int Get) {
- if (Get == 1) {
- if (Event.compareTo(resUtil.getString("property.name")) == 0) {
- this.name = this.component.getName();
- return this.name;
- }
-
- if (Event.compareTo(resUtil.getString("property.btnaction")) == 0) {
- return this.buttonAction;
- }
-
- if (Event.compareTo(resUtil.getString("property.btntype")) == 0) {
- return this.buttonType;
- }
-
- if (Event.compareTo(resUtil.getString("property.btnimage")) == 0) {
- return Integer.toString(this.buttonImage);
- }
-
- if (Event.compareTo(resUtil.getString("property.btntext")) == 0) {
- this.buttonText = this.component.getText();
- return this.buttonText;
- }
-
- if (Event.compareTo(resUtil.getString("property.query")) == 0) {
- return this.queryComponent;
- }
-
- if (Event.compareTo(resUtil.getString("property.table")) == 0) {
- return this.tableName;
- }
-
- if (Event.compareTo(resUtil.getString("property.kfldcount")) == 0) {
- return Integer.toString(this.primaryKeyCount);
- }
-
- if (Event.compareTo(resUtil.getString("property.successpage")) == 0) {
- return Integer.toString(this.successPage);
- }
-
- if (Event.compareTo(resUtil.getString("property.errorpage")) == 0) {
- return Integer.toString(this.errorPage);
- }
-
- for(int cnt = 0; cnt < this.primaryKeyCount; ++cnt) {
- if (Event.compareTo(resUtil.getString("property.kfldname") + " " + Integer.toString(cnt + 1)) == 0) {
- return new String(this.primaryKeyFieldNames[cnt]);
- }
-
- if (Event.compareTo(resUtil.getString("property.kfldtype") + " " + Integer.toString(cnt + 1)) == 0) {
- return new String(this.primaryKeyFieldDataTypes[cnt]);
- }
- }
- } else if (Event.compareTo(resUtil.getString("property.name")) == 0) {
- if (this.isValidName(Value)) {
- this.name = Value;
- this.component.setName(this.name);
- }
- } else if (Event.compareTo(resUtil.getString("property.btnaction")) == 0) {
- this.buttonAction = Value;
- if (this.queryComponent.compareTo("") == 0 && Value.compareTo("0") != 0) {
- this.queryComponent = resUtil.getString("value.query");
- }
- } else if (Event.compareTo(resUtil.getString("property.btntype")) == 0) {
- if (this.getButtonType(Integer.parseInt(Value, 10)).compareTo("image") == 0) {
- this.buttonText = resUtil.getString("value.btntextimg");
- this.component.setText(this.buttonText);
- } else {
- this.buttonText = this.getDefaultText(this.getButtonAction(Integer.parseInt(this.buttonAction, 10)));
- this.component.setText(this.buttonText);
- this.buttonImage = -1;
- }
-
- this.buttonType = Value;
- } else if (Event.compareTo(resUtil.getString("property.btnimage")) == 0) {
- this.buttonImage = Integer.parseInt(Value, 10);
- if (this.buttonType.compareTo("0") != 0) {
- DMessageBox msg = new DMessageBox();
- msg.Warning(resUtil.getString("error.settoimage"));
- this.buttonType = "0";
- this.buttonText = "<IMAGE>";
- this.component.setText(this.buttonText);
- }
- } else if (Event.compareTo(resUtil.getString("property.btntext")) == 0) {
- this.buttonText = Value;
- if (this.buttonType.compareTo("0") == 0) {
- DMessageBox msg = new DMessageBox();
- msg.Warning(resUtil.getString("error.settotext"));
- this.buttonType = "1";
- this.buttonImage = -1;
- }
-
- this.component.setText(this.buttonText);
- this.component.Invalidate(true);
- } else if (Event.compareTo(resUtil.getString("property.query")) == 0) {
- if (this.buttonAction.compareTo("0") != 0) {
- if (this.isValidName(Value)) {
- this.queryComponent = Value;
- }
- } else {
- this.queryComponent = Value;
- }
- } else if (Event.compareTo(resUtil.getString("property.table")) == 0) {
- this.tableName = Value;
- } else if (Event.compareTo(resUtil.getString("property.kfldcount")) == 0) {
- int myCnt = Integer.parseInt(Value, 10);
- if (this.isValidCollection(myCnt)) {
- DMessageBox msg = new DMessageBox();
- int answer = 1;
- if (myCnt > 10) {
- answer = msg.Alert(resUtil.getString("error.maxfield") + " " + Integer.toString(10) + ".");
- if (answer == 1) {
- myCnt = 10;
- }
- }
-
- if (answer == 1) {
- this.primaryKeyCount = myCnt;
-
- for(int cnt = this.primaryKeyCount; cnt < 10; ++cnt) {
- this.primaryKeyFieldNames[cnt] = "";
- this.primaryKeyFieldDataTypes[cnt] = "-1";
- }
- }
- }
- } else if (Event.compareTo(resUtil.getString("property.successpage")) == 0) {
- this.successPage = Integer.parseInt(Value, 10);
- } else if (Event.compareTo(resUtil.getString("property.errorpage")) == 0) {
- this.errorPage = Integer.parseInt(Value, 10);
- } else {
- for(int cnt = 0; cnt < this.primaryKeyCount; ++cnt) {
- if (Event.compareTo(resUtil.getString("property.kfldname") + " " + Integer.toString(cnt + 1)) == 0) {
- this.primaryKeyFieldNames[cnt] = Value;
- }
-
- if (Event.compareTo(resUtil.getString("property.kfldtype") + " " + Integer.toString(cnt + 1)) == 0) {
- this.primaryKeyFieldDataTypes[cnt] = Value;
- }
- }
- }
-
- return "";
- }
-
- // $FF: synthetic method
- static Class class$(String class$) {
- try {
- return Class.forName(class$);
- } catch (ClassNotFoundException forName) {
- throw new NoClassDefFoundError(((Throwable)forName).getMessage());
- }
- }
-
- static {
- resUtil = initResourceUtil(class$asp$nfx$MSDBUpdate$MSDBUpdate != null ? class$asp$nfx$MSDBUpdate$MSDBUpdate : (class$asp$nfx$MSDBUpdate$MSDBUpdate = class$("asp.nfx.MSDBUpdate.MSDBUpdate")));
- }
- }
-